package com.sky.utils;

import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Component
public class MockWeChatPayUtil {
    public JSONObject pay(String orderNumber, BigDecimal amount, String description, String openid) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("code", "SUCCESS"); // 模拟支付成功
        jsonObject.put("package", "prepay_id=1234567890");
        return jsonObject;
    }
}
